/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 14-2-20
 * Time: 下午2:49
 */
<div id="wrap">
    <?php
        // if it is not index then use the template style
        if ($categoryId != 4) {
            ?>
            <header class="jumbotron subhead" id="overview" style="margin-bottom:0px;">
                <div class="container">
                    <h1><?php echo($categoryName); ?></h1>
                    <p class="lead">学霸网致力于整合浩瀚繁杂的网络学习资源，以最简洁的方式呈现给大家</p>
                </div>
            </header>
            <?php
            // or use the index style
        } else {
            ?>
            <div id="carousel" class="carousel slide" data-ride="carousel" style="height:300px;margin-bottom:0px">
                <!-- Wrapper for slides -->
                <div class="carousel-inner" style="height:300px;">
                    <div class="item  subhead active" style="height:300px;">
                        <div class="carousel-caption">
                            <h1 style="font-size:50px;">学霸导航</h1>
                            <p class="lead">简明、直观、实用的网络学习资源导航<br />让学习从此变得如此简单</p>
                        </div>
                    </div>
                    <div class="item subhead" style="height:300px;">
                        <div class="carousel-caption">
                            <h1 style="font-size:50px;">学霸导航</h1>
                            <p class="lead">前进的路上，学霸网与你同行<br />让上网从此变得意义非凡<p>
                        </div>
                    </div>
                    <div class="item subhead" style="height:300px;">
                        <div class="carousel-caption">
                            <h1 style="color:white; font-size:50px;">学霸导航</h1>
                            <p class="lead">我们不做教育<br />但我们提供最优质的网络学习资源<p>
                        </div>
                    </div>
                </div>
            </div>
            <!--设为首页 -->
            <button class="btn-primary  " id="addHomePage" style="position: absolute; top: 10px; right: 30px">
                <span class="glyphicon glyphicon-heart">设为首页</span>
            </button>
        <?php
        }
        $result->close();
    ?>